//加载插件
const express = require('express')
let router = require('./router.js')
const bodyParser = require('body-parser')

//配置插件
const app = express()
app.engine('html',require('express-art-template'))
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())


//静态资源
app.use('/node_modules/',express.static('./node_modules/'))
app.use('/public/',express.static('./public/'))



//url
app.use(router)



app.listen(3000,() => {
    console.log("启动。。。")
})


